<?php

/**
 * Category form.
 *
 * @package    ProdAssistant
 * @subpackage form
 * @author     Paweł Świtalla
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class CategoryForm extends BaseCategoryForm
{
  public function configure()
  {
    $core = PACore::getInstance();
    $this->useFields(array('name', 'parentCategory', 'quantityUnit', 'parameters_list', 'locked'));
    $this->widgetSchema['name']->setLabel('Nazwa');
    $this->widgetSchema['parentCategory']->setLabel('Rodzic');
    $this->widgetSchema['quantityUnit']->setLabel('J.m. (ilość)');
    $this->widgetSchema['parameters_list']->setLabel('Parametry <br /><a onclick="App.loadWindow(\''.$core->generateAppUrl('Core', 'homeGetComponent', true, array('componentModule' => 'StoreSettings', 'name' => 'manageParams', 'handler' => 'refreshLastForm')).'\')" class="active"><img src="/images/icons/add.png" class="middle" height="18" width="18"></a>');
    $this->widgetSchema['locked']->setLabel('Zablokowana');
  }
}
